package com.cetcs.kmga.dataManager.util.socket;

import org.springframework.web.socket.WebSocketSession;

import java.util.Date;

/**
 * Created by XingWen on 2016/12/23.
 */
public class UserSocket {
    private String userId;  //用户ID
    private Date connectionTime;    //成功连接时间
    private Date preRequestTime;    //上次请求时间
    private Date newRequestTime;    //新请求时间
    private Date lastSendTime = new Date();  //下架消息最近一次发送时间
    private Date lastTaskSendTime = new Date();  //待处理任务最近一次发送时间
    private WebSocketSession webSocketSession;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Date getConnectionTime() {
        return connectionTime;
    }

    public void setConnectionTime(Date connectionTime) {
        this.connectionTime = connectionTime;
    }

    public Date getPreRequestTime() {
        return preRequestTime;
    }

    public void setPreRequestTime(Date preRequestTime) {
        this.preRequestTime = preRequestTime;
    }

    public Date getNewRequestTime() {
        return newRequestTime;
    }

    public void setNewRequestTime(Date newRequestTime) {
        this.newRequestTime = newRequestTime;
    }

    public Date getLastSendTime() {
        return lastSendTime;
    }

    public void setLastSendTime(Date lastSendTime) {
        this.lastSendTime = lastSendTime;
    }

    public Date getLastTaskSendTime() {
        return lastTaskSendTime;
    }

    public void setLastTaskSendTime(Date lastTaskSendTime) {
        this.lastTaskSendTime = lastTaskSendTime;
    }

    public WebSocketSession getWebSocketSession() {
        return webSocketSession;
    }

    public void setWebSocketSession(WebSocketSession webSocketSession) {
        this.webSocketSession = webSocketSession;
    }
}
